package com.byzk.p2p.admin.log.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.byzk.p2p.admin.log.dao.LogDao;
import com.byzk.p2p.admin.log.dto.Log;

/**
 * 日志操作类
 * @author suker.zhou
 *
 */
@Service
public class LogService {

	@Autowired
	private LogDao logDao;
	
	/**
	 * 添加操作日志
	 * @param uid     用户id
	 * @param content 操作内容
	 * @param level   日志级别
	 * @return
	 */
	public Integer log(Integer uid,String content,String level){
		Log log=new Log(uid,content,level);
		return logDao.log(log);
	}
	
	
}
